SftTabs/NET 6.0

NaturalSize Property, SftTabs Class

Softel vdm, Inc.

Returns the natural height/width of the control.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Public ReadOnly Property NaturalSize As Size

C#   

public Size NaturalSize { get; }

C++   

public: property Size NaturalSize {
        Size get();
}

Property Value

The optimal height or width of the control.

Comments

The NaturalSize property returns the natural height/width of the control.

The NaturalSize property can only be used when a client area has not been defined (see ClientArea).

Horizontal tab controls without client area have an optimal height which allows all tabs to be displayed without being truncated and without extra height added to the tabs to fill the available dimensions of the tab control.

Vertical tab controls without client area have an optimal width which allows all tabs to be displayed without being truncated and without extra width added to the tabs to fill the available dimensions of the tab control.

The MakeNaturalSize method can be used to resize a tab control to its best width or height.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com